import request from '../utils/request'

export function parkingrecordList(queryParams){
  return request({
      url:'/parkingrecord',
      method:'get',
      params: queryParams,
  })
}

export function parkingrecordEdit(queryParam){
  return request({
    url:'/parkingrecord',
    method:'put',
    data: queryParam,
  })
}

export function parkingrecordDelete(id){
  return request({
    url:`/parkingrecord/${id}`,
    method:'delete',
  })
}

export function getCar(){
  return request({
    url:'/getCar',
    method:'get',
})
}

export function parkingrecordAdd(queryParam){
  return request({
    url:'/parkingrecord',
    method:'post',
    data: queryParam,
  })
}